You can do something like this:
PHP Code:
$errorimage = "<img src='pic/error.png' width='80%'>";
stderr("Error", "$errorimage");
or
PHP Code:
stderr("Error", "<img src='pic/error.png' width='80%'>");
and you can play with height and width values as you wish.