Faces and objects tracking in images and videos