graph TD
Start[Input: Theme & Preferences] --> PromptGen
subgraph Silo1[PROMPT ENGINEERING]
PromptGen[Generate Optimal Image Prompt]
end
subgraph Silo2[IMAGE GENERATION & VERIFICATION]
GenImage[Create Initial Avatar Image]
Verify[Analyze Image Quality]
end
subgraph Silo3[REFINEMENT]
Refine[Recreate Image If Needed]
end
subgraph Silo4[FINAL FORMATTING]
Format[Resize to 1024x1024]
end
PromptGen --> GenImage
GenImage --> Verify
Verify --> QualityCheck{Meets Requirements?}
QualityCheck -->|No| Refine
QualityCheck -->|Yes| Format
Refine --> Verify
Format --> FinalOutput[Final Avatar PNG]