Changed slice number ("Z") to be the first dimension in DICOM image.