Implemented screenshot capture