Compress image.