Improved camera for switching between 2D and 3D