framework for image extraction in dicom files