fixed null pointer exception if no test photo given
face recognition from camera