wrote constructor for ScreenshotImpl and some other functions