ordinances. The board is authorized to adopt such ordinances, not in conflict with the general laws of this State and the United States, to regulate the traffic upon the streets, roads and highways of Hall County as said board shall deem advisable in order to protect and preserve the health, safety, welfare, and morals of the citizens of said county; provided, however, that no railway or railroad lying within Hall County and passing through said county shall be affected by the provisions of this section or by ordinances enacted pursuant to the authority granted to the board of commissioners of roads and revenues of Hall County by this section. The board is further empowered to prescribe penalties and fix the punishment for the violation of any such ordinances.