Adam,
I can create a cutom dialog but I wanted to leverage the in built Insert Document functionality. The only change I want in that functionality is that on insert, it should insert image instead of the URL of the document. I do not think it is a wise idea to create a new custom dialog for this change.
I see that Load.ashx is being called when the window is getting closed.
Do you know if that is causing any problem or is there any other way I can achieve the required functionality?
Thanks,
Piyush