Ok, so process of elimination. As a reminder the avatars work on the other level (i.e. forums level) but not on the thread level.
1. The data directory is fine, and the images are in the directory with the correct write permissions.
2. The problem is something around the 'user_id' here in this...