This is what I've found out so far (based on Jaime's suggestion) step by step:
1. Install the old avatar plugin and enable it
2. Open that file (jcomments.avatar.php) and the jcomments plugin (jcomments.php)
3. Copy "plgJCommentsAvatar" and "plgJCommentsAvatars" functions from the first file to the second one. Rename those functions in the first file (any name).
4. In the first file (avatar plugin) copy these lines out of the if structure that stands at the beginning of the file:
$mainframe = JFactory::getApplication('site');
$mainframe->registerEvent('onPrepareAvatar', 'plgJCommentsAvatar');
$mainframe->registerEvent('onPrepareAvatars', 'plgJCommentsAvatars');
(this are the first lines in my case:
<?php
// ensure this file is being included by a parent file
(defined('_VALID_MOS') OR defined('_JEXEC')) or die('Direct Access to this location is not allowed.');
if (JCOMMENTS_JVERSION == '1.0') {
global $_MAMBOTS;
$_MAMBOTS->registerFunction('onPrepareAvatar', 'plgJCommentsAvatar');
$_MAMBOTS->registerFunction('onPrepareAvatars', 'plgJCommentsAvatars');
} else if (JCOMMENTS_JVERSION == '1.5') {
global $mainframe;
$mainframe->registerEvent('onPrepareAvatar', 'plgJCommentsAvatar');
$mainframe->registerEvent('onPrepareAvatars', 'plgJCommentsAvatars');
}
$mainframe = JFactory::getApplication('site');
$mainframe->registerEvent('onPrepareAvatar', 'plgJCommentsAvatar');
$mainframe->registerEvent('onPrepareAvatars', 'plgJCommentsAvatars');
function plgJCommentsGetGravatar($email)
etc.)
5. Save that file and upload it. We're done with this file.
Let's go to the second file (jcomments file, where we had copied those two funcions)
6. In the function plgJCommentsAvatars function replace the global $mainframe by $mainframe = JFactory::getApplication('site');
So the beggining of this function should be something like:
function plgJCommentsAvatars( &$comments )
{
$mainframe = JFactory::getApplication('site');
$db = & JCommentsFactory::getDBO();
etc.
7. Very important. If you take a look at the code you'll see a switch function that executes the right code depending on the third party you want to import from. The thing is, as I don't know where that info comes from, just before the switch you have to initialize the variable (used in the switch). In my case, as I wanted to import images from kunena, my code is this one:
$avatars = array();
$avatar_type='kunena'; // write here the name of your 3rd party component
switch($avatar_type) {
etc.
8. Save and upload.
The only problem is that images are shown in different sizes. I'll go on working on this

Cheers