Refactor out the taking of screenshots, in preparation for using other means of doing so
First implementation of Xvfb video accelleration; Refactor as necessary to integrate the code