refactored moderate-image for clearer less deep Promise imbractions
refactored moderate-image for clearer less deep Promise imbractions

Change-Id: Ifb432f54729913774478478dd4b7f5cb7c1f44e5

firebase/functions-samples,Kevded/functions-samples,Kevded/functions-samples,Kevded/functions-samples,firebase/functions-samples,firebase/functions-samples,Kevded/functions-samples,firebase/functions-samples