Added Median filter, getting better results