I gave it a stab and oddly enough I didn't do to terrible.  I actually was able to get a hold of the author of the code and even found a few mistakes for him 

  So now I have a code that will take a base image and clothing images that I tell it to pick up to build me an avatar.
What I have no clue on is how to use this awesomeness further.  Meaning?
What I'd like to do is have it so when a player creates a character on their account, their gender and race choices will automatically pick the correct avatar base.  They go into the customization screen and can pick the usual things (hair style, hair color, markings, etc).  Then as they adventure - collecting armor and weapons - their avatar will reflect what is in their 'equip player' screen.  As in, if they have a huge FF7 sword of doom equipped (due to stats obviously 

 ) then their avatar in their HUD will reflect that.
I'd also like something that when they log in and go into their character list to pick which character they'd like to play it will show an image of their character (which I assume is just reusing the same image from their HUD).
Thoughts?