simplified line tool, removed pen type, inject canvas into DOM