Whenever in any court sentence is pronounced adjudging that the defendant pay a fine, and such fine is not immediately paid, the defendant shall be imprisoned for such nonpayment for the term of one (1) day for each dollar left unpaid and this alternative imprisonment shall not exceed ninety (90) days.