Refactoring Getgravatar Class