Fix incorrect decoding of image with large number of progression levels