Added an updating background model using running average with selective foreground mask.