Context: I am using CameraX to toggle between image analyzer and video capture. I have a texture view in main activity that displays a preview of the camera