API endpoint to process uploaded image recognition