fixed the image scaling