Enter the text or HTML in the textbox called Signature under Character link on the right menu -> Edit (name)'s Profile link at the top.
The HTML to display an image (as well as various other common HTML tags) can be found at the right of the textbox you type in when you post a reply on these forums, and is: