Make Image import pillow compatible