Fixed tool palette.
Drawing is now done in two steps: 1) draw center piece 2) update border in one following frames.