AttributeError: module ‘PIL.Image’ has no attribute ‘register_extensions

The Pillow version of 4.1.1 is the right package for running the model
pip install pillow==4.1.1

I have checked with examples also, all the models are working fine