fix painter bugs, add new interface paintSingle() and paintMenu()