saveFrame updated to be aware of the option to save different data {data_raw, data_setCorr or data_setPhotCorr}