$ Xvfb <DISPLAY> -screen <screen-ID> <width>x<height>x<depth>
$ xwud -in /usr/tmp/Xvfb_screen<screen-ID>
$ xwd -display <DISPLAY> -root | xwdtopnm | pnmtopng > <output-file.png>
edit