take screenshot from Project let screenshot = new publish.screenshot(width,height); screenshot.screenshot();