An alternative would be to just pass `exports` as the ImageViewer module, since the provider just needs some sort of object with 2 methods. Which means that we can just pass it a simple object instead of creating a function and its prototypes.

```
EditorManager.registerCustomViewer("image", {
    render: function () { ... },
    onRemove: function () { ... }
});
```