Ok, after playing with this some more, I came across another bit of code in the getinfo template.
Code:
$userinfo[avatarurl]
I've tried using this, but clearly it didn't work. I just wish I understood what the $ foo[foo] statements actually did. Is there a tutorial anywhere that explains this function?