added Tool selection option

when using a brush, don’t let the pen go when in position 0.