Corrected the software according to remarks from the last inspection:
	- RegionDetector class: 
		+ Validation function for input image
		+ Copy and release image within class
		+ Changed a for loop to foreach loop