readStack() which creates a stack of images and does background subtraction.