issue #98 grudgingly allow both a structuring element size and number of repeats for erode and dilate
issue #1278 added preference for image scaling