Changed notation to stacks in image for smoothing