Refactored flow control of steps required to take a photo into its own class