fix photos in popup