I don't understand what you're suggesting, multiple elements with the same ID?
Basically, the empty source attribute for the image tag was calling the page again, only with no strings attached, so if you load that page normally I had a query to DELETE from the database, so it would create it OK then right away delete it.
MySQL query logs revealed the double queries going on, finding the source was a whole nother story.