Is it possible to call a JavaScript function from the IMG SRC tag to get an image url?
Like this:
Since you're using .NET, you could add the runat="server" attribute and set the src in your codebehind.
runat="server"
src