corrected the thumbnails in upload photo