A good way to override the call to write() has not yet been determined.  Therefore we need to modify the location where the html call is made in order to get the gravatar to show up in the proper location.