Sky subtraction that preserves low-surface-brightness  flux