Pillow is a powerful and user-friendly Python imaging library, letting you open, edit, create, and save images in many formats. Pillow is the actively maintained fork of the original PIL.
Install it with:
pip install Pillow
Then import it at the top of your Python files.
from PIL import Image