Click on "User CP" (right above the Post Reply button at the top of the thread), then click Edit Avatar.