An optic to replace space and its application towards ultra-thin imaging systems