Handle camera allocation properly