Fix Image import to be compatible with Pillow