graph TD
A[Raw Topic/Style Description] --> B[Prompt Optimization]
B --> C[Enhanced Prompt]
C --> D[Initial Image Generation]
D --> E[Avatar Image URL]
E --> F[Image Analysis]
F --> G{Quality Check}
G -->|Needs Improvement| H[Image Regeneration]
H --> E
G -->|Passes| I[Image Resizing]
I --> J[Final Avatar PNG]
subgraph SILO 1 - PROMPT
A --> B
B --> C
end
subgraph SILO 2 - GENERATION
C --> D
D --> E
end
subgraph SILO 3 - QC
E --> F
F --> G
G --> H
end
subgraph SILO 4 - FORMAT
G --> I
I --> J
end