Add external callbacks with adding image via url

I added a storage for external callbacks, and update `Image dialog` with adding an image via url.
This patch will make easier to build callback functions for external libraries.