Overwrite the dark reference every time a new dark reference is detected.