Diffusion Models for Visuals: Implementing Forward and Reverse Diffusion for High-Fidelity Image Generation Using Stable Diffusion and Midjourney API