When the number of zones (sub-pads) is changed, any histograms on the active canvas will be redrawn on the new canvas. Also, more general code clean-up.