The court may direct the clerk by written order to disburse all or any portion of the rental payments received by him to the respondent for the purpose of effectuating the removal of the violation. The court may also direct the clerk to make such other disbursements of the rental payments to the respondent or to any other person as in the judgment of the court will permit the owner to maintain the property.
When the violation is removed, the court shall direct that the balance of funds, if any, remaining with the clerk be paid to the respondent. The court may render judgment for costs in its discretion.
In lieu of or in addition to any relief that may be provided under this section, the court may appoint a receiver under section one hundred and twenty-seven I.