use `from PIL import Image` instead of `Image`