Implemented encoding for JPEG 2000 and JPEG-LS