move reading dicom image data later to save memory