If using templates just use normal html in the pages:
<a href="<db_cgi_url" TARGET="_blank"><img SRC="<%db_cgi_url%>/.....jpg" HSPACE=10 BORDER=0 height=50 width=300></a>
Or you could define the image in site html templates.pl in the globals section at the top.
Good Luck!
Glenn http://mir.spaceports.com/~glennu/