fix: moved imports for dicominfo outside of the function