[fix] spectral images in offline correctly saved
In offline mode, the spectral image was allocated twice, thus its size was doubled leading to an error when writing in the .hdr file.
In offline mode, the spectral image was allocated twice, thus its size was doubled leading to an error when writing in the .hdr file.