So I have this code, it takes a screenshot and then displayes it on your screen but it takes some time to take the screenshot so It sometimes skips over the opening part, ho