def thumbnail(self, obj: Meem): return htmlimg(obj.url, mw=150, mh=150)
def image(self, obj: Meem): return ahref(obj.url, htmlimg(obj.url, mw=600, mh=400))
def thumbnail(self, obj: MemeTemplate): return htmlimg(obj.image_file and obj.image_url or obj.bgimage_url, mw=150, mh=150)
def image(self, obj: MemeTemplate): return mark_safe( ahref(obj.image_url, htmlimg(obj.image_url, mw=600, mh=400)) + " " + ahref(obj.bgimage_url, htmlimg(obj.bgimage_url, mw=600, mh=400)))
def thumbnail(self, obj: MemeSourceImage): return htmlimg(obj.image_url, mw=150, mh=150)
def image(self, obj: MemeSourceImage): return ahref(obj.image_url, htmlimg(obj.image_url, mw=600, mh=400))