Added takeScreenshot(String name, int quality) as requested by issue-371