Added thumbnail functionality and added all images as thumbnails