calculating rawdata baseline for all pixels (not complete)