Implement an after_screenshot hook