paintSparse added

paintSparse features added, including gzip output in util.c