Topologically faithful image segmentation via induced matching of persistence barcodes