Refactored Gravatar mongoose method instead expose as locals variable