take a screenshot and save it