Merged imfilter.py.