Refactored ScreenshotTaker