All penalties for offenses against the charter and ordinances of the city shall be within constitutional and legal limits. The council may ordain that persons who have been convicted of such offenses be imprisoned until fines, including penalties and costs, shall have been paid. The council shall determine, by resolution, from time to time the amount of such fines and costs.