I'm using a .aspx style of dynamic image where I code in the PAGE_Load procedure of a page and set the contenttype to "image/png"

It's working fine but calling the page_load procedure twice which is a quite expensive procedure.

I can implement a cache of some sort but I'd rather know why it is requested twice.

I've specified the image size in the <img> tag already which was my first suspect.

Help!