Features like optical zoom, bokeh effects, and ultra-wide angles are made possible by engineering digital lenses that fit within millimeter-thin profiles.