main: use relative path to take_screenshot and don't try to draw when errors happen