Face Reconstruction from Facial Templates by Learning Latent Space of a Generator Network