NIfTIImage dimension methods initialization extracted