Adding previous code / start of image subtraction