REF : proposed modifications to img_subtraction_pre