I posted a question on Stackoverflow hoping that someone has an idea of how to use the user image api in tfs 2012.
http://stackoverflow.com/questions/12633732/api-to-update-users-image-identity-extended-properties-not-saving
Update
Figured it out myself