filters.py: modified so that pyramids work with greyscale (num_channels==1) renderers