Pillow compatibility/

use from PIL import - so this is compatible with Pillow