Analyze photos with machine learning