(1) In all cases in which courts or magistrates have now or may hereafter have the power to punish offenses, either in whole or in part, by requiring the offender to pay a fine or costs, or both, such courts or magistrates may make it a part of the sentence that the party stand committed and be imprisoned in the jail of the proper county until the same is paid or secured to be paid or the defendant is otherwise discharged according to law.
(2) Notwithstanding the provisions of subsection
(1) of this section, when any offender demonstrates to the court or magistrate that he or she is unable to pay such fine or costs in one lump sum, the court or magistrate shall make arrangements suitable to the court or magistrate and to the offender by which the offender may pay in installments. The court or magistrate shall enter an order specifying the terms of such arrangements and the dates on which payments are to be made. When the judgment of conviction provides for the suspension or revocation of a motor vehicle operator's license and the court authorizes the payment of a fine or costs by installments, the revocation or suspension shall be effective as of the date of judgment.