Refactored the camera capturing logic to be in it's own class.