Less copying in the JPX coder, merged and rebased
Merge pull request #4538 from fkaelberer/lessCopyingInJPX

Less copying in the JPX decoder