Change jp2.read to be compiliant to pair standard.