Move subtraction and background to Filter class