fixed bug which caused 16 bit images (image series format) not be properly handled