use screencap to take snapshot