Hello!
try htmldoc, it's the best i've worked with sofar.
http://www.easysw.com/htmldoc/software.php
It's a standalone app. (Linux & win.) you can use to convert html to pdf, so maybe you can have a small html document that only has a link to your image file.
You can use the passthru() command to run it.
bye!!