Forum Moderators: open
If I understand you correctly, the answer is that mark-up is added in the HTML document itself -- mark-up that SURROUNDS an image tag, rather than code that is somehow included in the image file.
<a href="destination-page.html"><img src="banner.gif"></a>
If I didn't understand your question properly, please let me know, and maybe post the HTML that you are currently using to display the banner image.