Add all matrix of images in a stack

Add all matrix of images in a stack