Median filtering images as an example