face Detection code update