Okay, I inserted this into the side bar:
Code:
<img src='http://www.".constant("DOMAIN").constant("SCRIPTPATH")."/siggy.php?id={$this->favpet}' border=0>
Now I'm not sure what else I need to add in, since the image is currently not showing up (the adoptable ID is not being inserted).