Added photoUtils.js in cloud code