Write/update PNG and JPEG.

Indirectly, using MEM datasets as an intermediary.

Closes #177.

Also add --driver option to rio-stack for integration testing.

Move CLI main to main.py
Merge pull request #182 from mapbox/issue177

Write/update PNG and JPEG.