improve screenshot performance