(1) Where any person having charge of any animal, is arrested for any offence against the provisions of this Act, it shall be lawful for the person arresting the offender to take charge of the animal, and to deposit the animal in a place of safe custody, as a security for the payment of any necessary expenses which may have been or may be incurred in taking charge of and keeping the animal.
(2) It is lawful for the court, before which the case is brought, to order such animal to be sold for the purpose of satisfying such penalty and all such reasonable expenses.