graph TD
A[Receive designed cards folder path and niche insights JSON file] --> B{For each card design}
B --> C[Resize image to 2000x2000 pixels using skill #228]
C --> D[Analyze resized image for quality and accuracy using skill #198]
D --> E{Does the image meet quality standards and match the niche?}
E -->|Yes| F[Save image to approved images folder]
E -->|No| G[Discard image and log the issue]
F --> H{Repeat for all card designs}
G --> H
H -->|Less than 3 approved designs| I[Log issue and request additional designs from Layout Designer]
H -->|3 approved designs obtained| J[Optimize images to ensure file size does not exceed 1MB each]
I --> B
J --> K[Return file path of approved images folder]