changed the image and compress the size