Break camera code into separate file and add getter functions