Fixed medianFilter