Fix parsing of JP2 images