Implemented drawing line.
Implemented selecting shape using PaletteView.