To find the maximum valued pixel in the image