Out of the money realized from the sale of any impounded animals, the poundmaster shall deduct all of the poundmaster’s legal fees and charges and shall deliver the balance, if any, to the chairman of the board of township supervisors, with an accurate description of the animals sold and the amount received by the poundmaster for each animal. The board of township supervisors shall give the poundmaster a receipt in duplicate for the money paid to it and the poundmaster shall file one of the receipts with the township clerk. The board, at any time within six months after the sale of the animals and upon sufficient proof from the owner of any animal sold, shall pay to the owner the amount received from the poundmaster. If the money is not claimed within six months after the sale, the sum received must be retained for the use of the township.