The sheriff shall, without prejudice to any other or wider powers conferred by statute, have power on convicting any person of a common law offence—
(a)to impose a fine not exceeding £150 ;
(b)to ordain the accused to find caution for good behaviour for any period not exceeding 12 months and to an amount not exceeding £150, such caution being either in lieu of or in addition to a fine or in addition to imprisonment as hereafter in this section mentioned ;
(c)failing payment of such fine, or on failure to find such caution, to award imprisonment in accordance with section 407 of this Act;
(d)to award imprisonment, for any period not exceeding three months.