Fixed scaling bug from JPEG2000