primitive (and buggy) dendrogram painting