Encodes the image to the specified format
Image to encode.
Format and options passed to the encoder.
The encoded image.
Encodes the image to the specified format