Here’s a description how to do it without any extensions:
http://distributedresearch.net/blog/2008/01/21/how-to-make-image-links-in-mediawiki
This extension will allow you to use more comfortable markup:
http://www.mediawiki.org/wiki/Extension:ImageLink