Added changes to make the photos appear as thumbnails on the main page