finish the screenshot function