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

I use a custom avatar plugin. The code I use is:

if (! function_exists (& # 39; get_avatar & # 39;)):
get_avatar function ($ id_or_email, $ size = 0, $ default = $, alt = false) {
if (! get_option (& # 39; show_avatars & # 39;))
returns false;
static $ default_url;
if (! isset ($ default_url)) $ default_url = & # 39; http: //example.com/images/avatar.png&#39 ;;
if (false === $ alt)
$ safe_alt = & # 39;
other
$ safe_alt = esc_attr ($ alt);
if (! is_numeric ($ size))
$ size = 0 & # 39 ;;
$ avatar = "{$ safe_alt}";
return apply_filters (& # 39; get_avatar & # 39 ;, $ avatar, $ id_or_email, $ size, $ default, $ alt);
}
end if;
function __limit_default_avatars_setting ($ default)
{
}
add_filter (& # 39; avatar_defaults & # 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 solve this problem?