Genes play a role in determining the beauty of a person's face, but that role varies with the person's sex, according to a new study.