def METHOD_NAME(self, params):
    props = super().METHOD_NAME(params)
    if 'data' not in props:
        return props
    data = props['data'] or {}
    if not isinstance(data, dict):
        w, h = data.width, data.height
        props['data'] = data = json.loads(data.dump_options())
        if not self.height and h:
            props['height'] = int(h.replace('px', ''))
        if not self.width and w:
            props['width'] = int(w.replace('px', ''))
    else:
        props['data'] = data
    if data.get('responsive'):
        props['sizing_mode'] = 'stretch_both'
    return props