working median filter in color