Be it further enacted, that the mayor and council of said city shall have power and authority to prevent horses, mules, cattle, and all other animals or fowls from running at large or being tied or tethered on streets or sidewalks in said city, and to prevent and prohibit the keeping of hogs within the city limits, or to regulate the manner in which they must be kept, and shall have power and authority to take up such animals or fowls and impound same, and to punish all owners of such animals and fowls who refuse to obey any ordinance passed by mayor and council carrying this authority into effect.