BUG: fixed improper importing a series of dicom images.

Fixed issue when importing a series of dicom images, the scalar type is set incorrectly. A min and a max are used to check the scalar range now and determine the correct scalar type for importing image.