Support take a screenshot

Currently supported platform is Darwin only.