Adaptive optical zoom