Is it possible to call a JavaScript function from the IMG SRC tag to get an image url?
Like this:
You might be able to do it on the server side. Alternately you could attach an onload event to swap the image src out. I guess the question then becomes, why would you have to use Javascript in the first pace?