In this talk I will first present methods for shaping the three-dimensional response of an optical system. Then I will discuss how to integrate tailored optical responses with digital postprocessing algorithms to improve specific imaging tasks. If time allows I will also discuss fundamental limits of optical systems.