. "Admittedly, the law does not consider such detention as a penalty, but only as a measure of enforcement of obligations (private ones included), and imprisonment can be ordered only as a last resort by a court after a hearing and only if the judge is convinced that the person concerned is solvent but refuses to pay." . . .