Consistent Estimation of the Max-Flow Problem: Towards Unsupervised Image Segmentation