bug fix and feature addition

1. fix for defining scan region dimensions.

2. scan regions in preferences can now be named. The name is displayed in the decode image dialog.