@classmethod
def get_product_images(cls, products, name=None):
    """
        Getter for `images` function field
        """
    res = {}
    for product in products:
        product_images = []
        for media in product.media:
            if not media.static_file.mimetype:
                continue
            if 'image' in media.static_file.mimetype:
                product_images.append(media.static_file.id)
        res[product.id] = product_images
    return res
