Prevent the edit/insert images function from being invoked if no
template file is loaded. Also set close up to remove the current
template file.
Merge branch 'master' of github.com:kenaaker/make_inserts_Qt
Fixed left over insertion points, and fixed failure to write updated
insertion point into output file.