graph TD subgraph AvatarVision A[Input Requirements] --> B[Prompt Engineering] B --> C[Initial Avatar Generation] C --> D[Avatar Analysis] D --> E{Quality Check} E -->|Needs Improvement| F[Prompt Refinement] F --> C E -->|Passes| G[Image Resizing] G --> H[Background Removal] H --> I[Final Avatar PNG] subgraph Prompt Engineering B1[Process Topic/Theme] --> B2[Create Generation Prompt] B2 --> B3[Optimize for Facial Detail] end subgraph Quality Control D1[Analyze Facial Features] --> D2[Check Resolution] D2 --> D3[Verify Theme Alignment] end subgraph Final Processing G1[Scale to 1024x1024] --> H1[Create Alpha Channel] H1 --> H2[Remove Background] end end