average face computation script