Motion tracking using lucas kanade algorithm