add PIL/Pillow support. (not tested)