How to remove i2.wp.com from avatar images? (Jetpack not installed)

I am using a custom avatar plugin. The code I am using is:

if (! function_exists (& # 39; get_avatar & # 39;)):
get_avatar function ($ email_id, $ size = & # 39; 0 & # 39 ;, $ default = & # 39; & # 39 ;, $ alt = false) {
if (! get_option (& # 39; show_avatars & # 39;))
false return;
static $ default_url;
if (! isset ($ default_url)) $ default_url = & # 39; http: //example.com/images/avatar.png&#39 ;;
yes (false === $ alt)
$ safe_alt = & # 39; & # 39 ;;
plus
$ safe_alt = esc_attr ($ alt);
if (! is_numeric ($ size))
$ size = & # 39; 0 & # 39 ;;
$ avatar = "{$ safe_alt}";
return apply_filters (& # 39; get_avatar & # 39 ;, $ avatar, $ email_id, $ size, $ default, $ alt);
}
it will end yes;
__limit_default_avatars_setting function ($ default)
{
}
add_filter (& # 39; avatar_defaults & # 39 ;, & # 39; __ limit_default_avatars & # 39;);


?>

However, this URL goes to: https://i2.wp.com/www.example.com/images/avatar.png

I have never used the Jetpack plugin. How to fix this problem?