Object tracking using frame-difference method