Whenever any Person shall be convicted of a Misdemeanor under this Act it shall be lawful for the Court, if it shall think fit, in addition to or in lieu of any of the Punishments by this Act authorized, to fine the Offender, and to require him to enter into his own Recognizances, and to find Sureties, both or either, for keeping the Peace and being of good Behaviour; and in all Cases of Felonies in this Act mentioned it shall be lawful for the Court, if it shall think fit, to require the Offender to enter into his own Recognizances, and to find Sureties, both or either, for keeping the Peace, in addition to any of the Punishments by this Act authorized; provided that no Person shall be imprisoned under this Clause for not finding Sureties for any Period exceeding One Year.