Where you write the image to the page you have it mildly wrong. What you want to do is this:
<img src='<$ ...>'>
Putting the string in quotes. A couple of the days have mistakes in the PHP, but you can fix those when the major problem is fixed. Do you have a link? What I would do is look at the page (which happens after the PHP magic happens) to see how that image tag is getting populated.
...and gladly would he learn and gladly teach
for humor and the unique Bush/Obama Approval Polls