If you have the possibility of running parts of KDE on the machine that is going to generate the images, you could use the kwebdesktop program to use the khtml-Engine (the same as in Konqueror, i.e. a /very/ good one ;) to get you a rendered image of your site ...
It is intended for use as a desktop background generator, but it should work for your case just as well :
kankoku:~$ kwebdesktop --help Usage: kwebdesktop Qt-options KDE-options width height file URL (...) Arguments: width Width of the image to create height Height of the image to create file Filename where to dump the output in png format. URL URL to openIt is part of kdebase. Hope this helps; it's not strictly perl ;)
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>