require yaml.
require rtesseract gem.
type error message should include DICOM type.
write and close the fetched dcm file.
change routes.