Updated openjpeg formula

Updated to work with python-pillow as it requires version >= 2.0 of openjpeg