fixed the issue in the AVOS cloud function for saving user's picture.