Handle device rotation in ScreenshotService