Hi, Thesa.
You can put <img ... /> to the chunk, and call MakeLink like this:
<h1>[[MakeLink? &docid=`1` &alink_chunk=`logo_chunk` &dlink_chunk=`logo_chunk`]]</h1>
In the page with id=1 you get <img ... />, in any other page you get <a href="[~1~]"><img ... /></a>.
MakeLink is three years old
school shippet

Today you can use PHx plugin for this task, but at the same time and for many others.