Gravar-mail: Iterative graph cuts for image segmentation with a nonlinear statistical shape prior