Refactored logic into a camera class