How are AI Image Generation Models Built?