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.
Merge pull request #1 from adaussy/smart-paste

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