Using getScreenshot as a "waitForCompositing" API in order to get rid of
the white flashes.
Merge pull request #106 from etiennesegonzac/screenshot-after-compositing

Using getScreenshot as a "waitForCompositing" API