use medianBlur and contours
smooth output
update gradcut