Visibility based continuum subtraction