The police juries may adopt the necessary ordinances to carry out La. Rev. Stat. 33:4852 and may enforce the ordinances by fine not to exceed five hundred dollars, or imprisonment not to exceed six months, or both.