Thread implementation for ScreenshotService