Stable Diffusion From Scratch