image background subtraction does not remove average