nanshe/advanced_image_processing.py: Corrected a typo in a comment.
nanshe/advanced_image_processing.py: Found a bug where regions might be accepted even if they failed to match some of the properties.