Code refactor related detailScreenshotImage