add quadtree structure for painting