The various types of radial distortions generated by digital cameras are presented in this paper, like Barrel Distortions and Pincushion Distortion. Image processing techniques are used to correct the barrel distortion generated by wide-angle lenses of digital cameras. A model for barrel distortions is founded. Moreover, an algorithm for correcting this distortion is developed. This algorithm depends on finding the right parameters of the model. The grid pattern is used to detect pixels that caused the distortion and reallocate these pixels back into their original locations, making the corrected photo as close as possible to the original.