Modifying the image so that they are resized to the correct size.