added otical flow masking