graph TD
A[Input: Pun List + Image Prompts] --> B[Initialize Card Generation]
B --> C{Process Each Card}
C --> D1[Card 1 Processing]
C --> D2[Card 2 Processing]
C --> D3[Card 3 Processing]
D1 --> E1[Generate Image with Text]
D1 --> F1[Check Image Size]
F1 --> G1{Resize Needed?}
G1 -->|Yes| H1[Resize to 1024x1024]
G1 -->|No| I1[Save Final Card 1]
H1 --> I1
D2 --> E2[Generate Image with Text]
D2 --> F2[Check Image Size]
F2 --> G2{Resize Needed?}
G2 -->|Yes| H2[Resize to 1024x1024]
G2 -->|No| I2[Save Final Card 2]
H2 --> I2
D3 --> E3[Generate Image with Text]
D3 --> F3[Check Image Size]
F3 --> G3{Resize Needed?}
G3 -->|Yes| H3[Resize to 1024x1024]
G3 -->|No| I3[Save Final Card 3]
H3 --> I3
I1 --> J[Collect Final Cards]
I2 --> J
I3 --> J
J --> K[Output: Final Card Collection]