Add resource dialog to choose where the image will be stored.

This dialog can create a name of file using a text selection.
This dialog remember last choice depending of the edited file.