optional background subtraction