nanshe/advanced_image_processing.py: Moved where statement out of else.