For a recent project I needed to render screenshots of webpages. Here is my solution using webkit: