Image segmentation using max-flow/min-cut