Add support for JPEG-2000 compression with code 34712

Fixes #9618.
Merge pull request #332 from melissalinkert/9618-dev_4_4

Add support for JPEG-2000 compression with code 34712