replaced import Image* with from PIL import Image*