in what format are your files?
Usually medical images are in some specific format (e.g. DICOM) and you need to apply a window for transform it into gray scale images https://www.upstate.edu/radiology/education/rsna/intro/display.php 14