a simple grayscale image filter.