fix the units for the image width and height