This document presents a modified s-gradient histogram preservation (s-ghp) algorithm for image denoising, focusing on improving the peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) through enhanced edge detection and gradient histogram computation. It discusses the challenges associated with various noise types like salt and pepper and Gaussian noise and compares the proposed method's performance against traditional denoising methods using multiple test images. Experimental results indicate significant improvements in image quality across different noise levels and iterations.