add user avatars

Here's the avatar changes I emailed you about awhile. Been a little busy with a newborn but I finally got around to them. Comments/changes appreciated. I'm not 100% happy with the approach, but I tried to modify as little as possible and keep it flexible..