Use xvfb-run for rendering mgp to images