added resolution=0 and draw_hierarchy function