anyway, I only protected this part from a missing `getScreenshot` function (especially in order to write tests more easily but this could be useful for running this in the browser one day) and didn't change the code at all. If you feel something can be changed here please file another bug, I'd rather keep the changes small and stick to the subject :)