Removed an unnecessary function

Don’t need to create the 3D array, will work on the assumption that we
are working with 4D DICOM arrays.