added basic functionality for getting images and spectra