Said court shall have power to punish as for contempt of court any person failing or refusing to obey any summons or subpoena served upon him as provided in the preceding sections, within the limits hereinbefore prescribed for punishment for contempt. The cause may be continued to such time as the judge may direct, and the court shall issue an order requiring the sheriff or deputy sheriffs of Rockdale County to arrest the offender and bring him before the court to answer the contempt; and it shall be the duty of such officer to arrest such person and to keep such person in custody until he is brought before the court unless he gives bond for his appearance at the time appointed for further hearing, as provided by law.