Replace PIL with pillow