Graph-based whole body segmentation in fetal MR images