i assume you are using a database? and have a users table?
if not, i dont know how to do it.
but, if you are using a DB then create a field for the location of the avatar.
when you want to display the avatar use the user id to get the field and echo out the result in an <img /> tag
hope that wasnt too confusing. early morning here