made the camera a component