[main] Can divide image to n segments, replace by average value. But the performance and result are not good. Change algorithm later.