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

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