In addition to the penalties of sections 18-5-14 and 18-5-15, the court shall, as part of its sentence, impose all costs of abatement to compensate the town for its costs to bring a building or land into compliance with this title. Additionally, the court may impose inspection costs, court costs and prosecution costs.