styling of thumbnail photos
added error handler for production