A probabilistic model of face mapping with local transformations and its application to person recognition