I have had this problem before as well. Mine was a permissions issue to the user_avatars folder (I think it is found in the images folder). Quick way to find it is go to the CP go down to tools, and look for permissions.... it will do a check for the permissions to see if it can read/write to the file.

Dunny