image modal stopgap monkeypatch