Great function here, thanks.

In the forum FAQ is shows that to "In order to add an image to your message or your signature, you must have the image already available on a web server and reachable by a URL"

Guiom