from PIL import Image, ImageDraw
from pathlib import Path
import sys
out = Path(sys.argv[1])
out.mkdir(parents=True, exist_ok=True)
for name, color, label in [("first.png", "#2161c9", "IMAGE ONE"), ("second.png", "#c95121", "IMAGE TWO")]:
    image = Image.new("RGB", (700, 700), color)
    ImageDraw.Draw(image).text((170, 320), label, fill="white", font_size=60)
    image.save(out / name)
