When the costs are imposed on the prosecutor, he may confess judgment for the same, with good and sufficient sureties; and, failing to do so or to pay the same presently, he must be imprisoned in the county jail or sentenced to hard labor for the county for 10 days.