To carry into effect the powers conferred upon such Town or its Council, by this chapter or by any future Act of the legislature of the State, the Council shall have power to make and pass all needful orders, bylaws, ordinances, resolutions, rules and regulations, not contrary to the Constitution and laws of this State; and for a violation thereof, to prescribe reasonable fines, penalties and imprisonment in the County jail or the place of imprisonment in such corporation, if there be one, for a term not exceeding thirty days. Such fines, penalties and imprisonments shall be recovered, imposed or enforced under the judgment of the Mayor of such town or the person lawfully exercising his functions.
The fact that a municipal ordinance vests in the Council or some other body or officer a discretion to do, or refuse to do, a given thing, shall not invalidate such ordinance when it would be impractical to lay down by ordinance for all cases a uniform guide for exercising such discretion. This section shall not be construed to mean that a delegation of discretion in any other case shall necessarily invalidate an ordinance. But, if any case, a delegated discretion is exercised in an arbitrary or discriminatory manner, such ordinance, as so applied, shall be unlawful and void.