Make buf local to encode_color function.
Implement lazy color mode.

This allows printing black&white pages in
single-pass mode even when the driver is set to color mode.