Add median filter support for color images