How To Build A Generative AI Model For Image Synthesis?