Added function to render spectral cube