If the owner or person in charge of the animals refuses or neglects to pay for the care and feed of the animals so rested, the company or person operating the railroad may charge the expense of the care and feeding to the owner or consignee and retain a lien upon the animals until the amount of expense is paid.