use TmpPhoto to solve image rotation bug