The court may commit to prison, for any contempt of which the respondent has been guilty in this proceeding, for a period not exceeding sixty days; and the respondent may, at any time within such time of imprisonment, appear before the court which made the order of commitment, and apply for a discharge from imprisonment, which the court may, for sufficient cause shown, direct.