This block can be simplified to `image_url = gravatar_url(email, default_image) if Setting['use_gravatar']`