Add an image codec class for compression/decompression.