@staticmethod
def find_most_common_color(image):
    """
        Find the Most Common Color in an Image.
        :param image:
        :return:
        an integer if the mode is grayscale;
        a tuple (red, green, blue) of integers (0 to 255) if the mode is RGB;
        a tuple (red, green, blue, alpha) of integers (0 to 255) if the mode is RGBA.
        """
    colors = image.getcolors(image.size[0] * image.size[1])
    return sorted(colors, key=lambda x: x)[-1][1]
