Control of focal plane in camera