Using nanostructures on a flat piece of glass can make lenses smaller, lighter and much cheaper – while providing better image quality.