photogallery fix