The violation of any provisions of this Charter, or of any ordinance of the city, shall be deemed a misdemeanor, and may be prosecuted by the authorities of the city in the name of the State of Arizona, or may be redressed by civil action, at the option of the mayor and council. Any person sentenced to imprisonment for violation of a provision of this Charter, or of an ordinance, may be imprisoned in the city jail, or, if the mayor and council, by ordinance, shall so prescribe, in the county jail of Pima County, in which case the expense of such imprisonment shall be a charge in favor of said county against the city.