Intelligent image analysis system