A husband who wilfully abandons his wife, leaving her destitute, or who refuses to support her when he is able to do so, may be punished by imprisonment in the state prison not exceeding one year or in the county jail or workhouse not more than six months nor less than fifteen days, and for ten days, in the discretion of the judge, he may be kept on a bread and water diet.