fix the image size bug in photoviewer view