Electronic structure of the cuprate superconducting and pseudogap phases from spectroscopic imaging STM