Revert "use global save_screenshot"

This reverts commit 167b04703a6058463973cf0acc0d6ae9d28202bf.