save spectra as png and pickle