Use streaming interface

Merge when image-min hits 0.2.0.