Digital filtering of images