added some python pillow code