Any animal that is out of control or unattended or otherwise in violation of this ordinance, whether or not the animal is on private or public property, may be impounded by the animal control officer in accordance with rules and regulations adopted pursuant to this article. Any animal control officer may at his or her discretion not impound a dog or other animal found in violation of this chapter but may instead return the animal to its rightful owner.