A Background Updating Algorithm for Moving Object Scenes