Using session not content_for to show thumbnails properly adapted to display