move import SimpleITK back into function