When a fine imposed for the violation of an ordinance of a municipal corporation is not paid, the party convicted may, by order of the mayor of the municipal corporation, or other proper authority, or on process issued for the purpose, be committed until such fine and the costs of prosecution are paid, or until the party convicted is legally discharged.
R.C. § 1905.34