jpeg2000: Improve reduced resolution decoding