Thanks that's what I used to solve it, for those interested:
XenForo_Template_Helper_Core::$helperCallbacks['avatar'] = array('Techspot_Helpers', 'helperAvatarUrl');
public static function helperAvatarUrl($user, $size, $forceType = null, $canonical = false)
{
$url =...