Hi, thank you for this great plug-in.
I have a suggestion for better working with avatar sizing.
By changing like below, you will be able to utilize avatar size as well.
Also, I propose to change class like this.
$img .= ' class="avatar avatar-$width photo"';
Original source:
$img = userphoto__get_userphoto($userid, (abs($full_dimension - $size) < abs($small_dimension - $size)) ? USERPHOTO_FULL_SIZE : USERPHOTO_THUMBNAIL_SIZE, '', '', array(), '');
Changed source:
$img = userphoto__get_userphoto($userid, (abs($full_dimension - $size) < abs($small_dimension - $size)) ? USERPHOTO_FULL_SIZE : USERPHOTO_THUMBNAIL_SIZE, '', '', array("height" => $size, "width" => $size), '');
I hope you accept my proposal.
Thanks,