Sets the image compression.