Local Maximums Method For Image Processing