a python program to add a filter effect to an image