The animal control department shall be authorized to dispose of any animal in as humane and painless a manner as possible, or to donate any animal to a public or nonprofit institution or agency, if such animal has remained unclaimed within the prescribed period of time or has not been adopted within three days after impoundment or notice to the owner, or it has been injured and is suffering or in great pain and such animal does not display an identification tag or no determination of owner can be made from a reasonable investigation.