How to avoid Lens flicker