@classmethod
def get_default_image(cls, products, name):
    """
        Returns default product image if any.
        """
    res = {}
    for product in products:
        images = product.images or product.template.images
        res[product.id] = images[0].id if images else None
    return res
