For an avatar you ONLY need to copy the URL, not the code to paste it on a forum or webpage. JUST the URL, without [img] or any of that jazz. If you did that is probably why it told you it was invalid, because as a URL, that would be invalid (but as forum code it IS valid).