If wkhtmltoimage doesn't complete in 2.0 seconds, the process is killed and control returns to the calling code. This was needed because wbhtmltoimage hangs often, even after successful image captures.