Fixes multithreading issues with dtype option of saving multispectral images in ENVI format.
Also, deletes the RawAndReference imagetype option.