def save_avatar(self, image):
path = current_app.config['<STR_LIT>']<EOL>filename = uuid4().hex + '<STR_LIT>'<EOL>image.save(os.path.join(path, filename))<EOL>return filename<EOL>
Save an avatar as raw image, return new filename.

        :param image: The image that needs to be saved.