The mayor shall have power to remit fines and forfeitures, to grant reprieves and pardons for all offenses arising under the ordinances of the city, by and with the consent of the council, and not otherwise.