fix a bug where zooming out after scrolling from bottom right corner gives transparent background in photos horizontal