code: def _image_field(self):
          
          for field in self.model._meta.fields:
              if isinstance(field, ImageField):
                  return field.name
docs: Try to automatically detect an image field