set the image to the correct width