Todo : Handle max-size correctly (only if inside a fancybox)
Fixes some small bugs with the other template.