Semantic face editing with GAN latent code optimization