Completed port of node-webkit screenshot