simple background subtraction algorithm that combines temporal and spatio-temporal information