Fix pixel data location calculation; Rewrite the Xvfb accelleration code to not segfault when it gets bad data