28c28,29 < if isinstance(self.__content, ImageFile.ImageFile): --- > #bit of a hack > if str(self.__content.__class__).endswith("ImageFile"):