The expenses of imprisonment of any criminal prisoner, such as accrue before conviction, shall be paid in the same manner as other costs of prosecution are directed to be paid; and those which accrue after conviction shall be paid as is directed by the law regulating criminal proceedings.
§ 221.160, RSMo