Perhaps surprisingly, displaying a user avatar is handled by the theme method avatar(). You find it in the class qa_html_theme_base in the file qa-include/qa-theme-base.php, or (if your theme overrides it) in the class qa_html_theme in the file qa-theme/{YOUR_THEME}/qa-theme.php.