Use ScreenshotOne.com API to generate screenshots of any website.
screenshotone.com
screenshotone/jssdk