I've got a question about your second suggestion. I have added the following lines for my custom widget (FormManager included):
Microsoft JScript runtime error: Unable to get value of the property 'get_contentFrame': object is null or undefined
What am I doing wrong? Furthermore, how can I finally save the image into my context?
Maybe you've got an example how to use the sitefinity image manager for your own custom widget?