Due to the large number of degrees of freedom offered by nanoscale scatterers, a single flat optic can project different images at different distances depending on the polarization of the light, opening up opportunities for optical encryption and augmented reality systems.