Optimal viewing positions for upright and inverted face recognition