Temporarily implement pattern from documents to ensure async communication with factory works
 Please enter the commit message for your changes. Lines starting
Updated promise code with relevant file system API calls
 Please enter the commit message for your changes. Lines starting
Remove extraneous print lines
Fix asynchronous call to photo storage

Promise functionality is fixed.