A streaming interface for resizing image buffers in node