Punishment for contempt may be by fine or imprisonment in the jail of the county where the court may be sitting, or both, in the discretion of the court.