Fix a memory leak when loading images
Refactor GList handling to iterate with for loops
Handle delete-event response from dialogues

GTK_RESPONSE_NONE only occurs if the dialogue is shown programatically,
which is not the case in EasyTAG, so handle GTK_RESPONSE_DELETE_EVENT
instead.