nifti stores matrix valued images as vector valued images using row-major ordering. reflect this in code for issue #6