<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_image_field_display(self, field_name, field):
 """ Render an image """

        image = getattr(self.instance, field_name)
        if image:
            fltr, _ = Filter.objects.get_or_create(spec='max-400x400')
            rendition = image.get_rendition(fltr)
            return rendition.img_tag
        return self.model_admin.get_empty_value_display()