Began refactor.

Now using CGDisplayCreateImage to take a screenshot.