I updated the code. Now it should work fine as an image by using:
HTML Code:
<img src='/yourfilename/{$adoptIDevariable}'>
So for example, I can now use it like this:
HTML Code:
<img src ='/wolfimage/{$wid}' height='auto' width='75%'>
This also resolves scaling issues, so no more ugly scroll bars on your images, and it allows you to display more than one generated image (like on the myadopts index). The only thing is that half of the images most likely fail to load if many are shown on one page.