ADDED:face detection testing code,sort of minor modifications