reverting to original CameraModelFactory function