added wstraka's changes to DNB stray light correction code