Since STDIN and STDOUT are unreliable when a process is killed, now communicates with  wkhtmltoimage via tempfiles.