Fix asynchronous call to photo storage

Promise functionality is fixed.