fixed the photo-display appearing as small empty block problem when loading a photo