Updated openjpeg formula