Be it further enacted, that the mayor and council of said city shall have the power and authority to prevent horses, mules, cattle, hogs, sheep, goats, dogs, and all other animals from running at large in said city; to prevent and prohibit the keeping of hogs within the city limits, or to regulate the manner in which they must be kept, if allowed kept; to limit the number of hogs to be kept by persons in said city, if allowed kept therein; and shall have full power and authority to take up and impound any of such animals and punish all owners of any such animals who shall fail or refuse to obey such ordinances as may be adopted by the mayor and council of said city to carry out and effectuate this authority. The mayor and council shall also have the authority to levy and collect such tax as they may deem proper upon dogs kept within the limits of said city, to provide for the registration thereof, and to prescribe such ordinances respecting the keeping of dogs as may be deemed proper, and to prescribe the punishment for violation of said ordinances.