fix massive distortion of images in preview pop-up