Replace pil with pillow

PIL is too old now, so replaced PIL with Pillow.