Template for background subtraction class.