Simple image filtering with Pillow