Added System.takeScreenshot function.

Added System.takeScreenshot function.