Added Linkback functionality to image thumbnails