In case any person shall commit any misbehavior or contempt in any court of judicature in this State, by word or gesture, the judges of such court may set a fine on such offender in any sum not exceeding fifty dollars, for the use of this State, and may commit the offender till payment. But if any person shall in the presence and during the sitting of the court strike or use any violence therein, such person shall be fined at the discretion of the court and shall be committed till payment; provided, that no citizen of this State shall be sent to jail for any contempt of court or supposed contempt of court, committed during the sitting of the court and in disturbance of the court, until he be brought before the court and there be heard by himself or counsel or shall stand mute.