Add MakeScreenshot function to API