API for capturing web screenshots