I have created a mask for each slice in my multidimensional image I am then trying to stack them so that I have a complete one dimensional image that can then be used as a mask