Fix square resizing of image