Update camera code