Bug (and workaround) when loading lossy JPEG2000 files