fix drawtree
Use bitmap to draw tree