changed the function to get the gravatar url to work with objects instead of array's