Tested code with rotated statistical model and average face