Update gravatar helper for custom classes
Restrict user model constraints