Simplify code and move zoom logic to the camera.