first homework second (revised) version

moved some functions and outlets from View to ViewController
improved predefined brush changing. now when you choose one, sliders
will follow it