Fix scaling of images