Learning the structure of facial features