reorganize take_screenshot, add call_status variable to check status on system()