Reduced repetitious code.
Rejigged parameter functions, and added a couple more functions to the Paint class.