capture screen using screenshotlayer api