prevent image from distortion