Solving the error message: Cannot find Python Imaging Library (PIL or Pillow)

Basically just adding the correct way to import pillow library as pil seems to be depreciated now
I don't know if this is the right way to do it because I am new to both python and github
so if any change need to be made, please tell me.