Lens flare adaptation