write to a jpg
split off svg code and write to a jpeg instead.  opencv won't allow piping to stdout.
add routine to write images.
make fill() generic and allow empty collections of scanlines.