(1) Where any person is imprisoned for non-payment of any fine or other sum of money, the person may pay or cause to be paid to the correctional officer the sum stated in the warrant of commitment together with the amount of the costs, charges, and expenses, if any, in full or in part, subject to any provision as to part payment.