update the screenshot procedure