Transforms the image stack to be view from either the X or Y axis