fixed a bug in the collection class and added a new gravatar helper