replacing the image with a smaller one