Factored the camera code into a separate class