nibabel should be imported after numpy as numpy is more general