Added command line option -r -rle.
This is used to enable run-length encoding for svg output.
Removed run-length encoding by default in function writeSVG.