Multi-Layer Joint Segmentation Using MRF and Graph Cuts