added dark image substract in WFC loop