Use Gravatar depends to user.profile.use_gravatar settings.