started to implement layout tree painting
implemented canvas painting