optimize all images.