def METHOD_NAME(self, is_static):
    if is_static:
        image = self.data.get('static_image')
        if not image:
            return
        return self.utils.get_object(self.data['static_image'][0])
    else:
        image = self.data.get('image')
        if not image:
            return
        return self.utils.get_object(self.data['image'][0])