Moved _generateHash outside of Gravatar class