implemented timeouts for pdf rasterization