Add --output
Refactor
Add lib/screencapture.js
Refactor: Extract screencapture()