@staticmethod
def _modal_colour(image):
    """
        Find the most popular colour in an image.

        :param image: The image to analyse.
        :return: The colour that appears most frequently in the image.
        """
    w, h = image.size
    pixels = image.getcolors(w * h)
    modal = pixels[0]
    for count, colour in pixels:
        if count > modal[0]:
            modal = count, colour
    return modal[1]
