Added face recognition and adaptive threshold image processing functions.