Algorithm Used In Image Processing