LUN-1859_quick Resurect the old logic of having the template serving the original image or the version resized by thumbnailer templatetag.

In order to have animated gifs working we need to avoid resizing them through thumbnailer templatetag.
LUN-1859_quick Proper formating for templates (use non-wrap mode). Proper closing of <a> tag.
LUN-1859_quick Remove template code duplication.
Merge pull request #42 from pbs/LUN-1859_quick

Lun 1859 quick