ENH:  Template warped mask distance.