The court before which the appeal is prosecuted may affirm the order of the judge, or discharge the appellant, or may require the appellant to enter into a new recognizance, with sufficient sureties, for a sum and a length of time as the court deems proper. The court of appeals may also make an order relating to the costs of prosecution as it deems just and reasonable.