Fix wrong handling in showImageDialog

`string` means data is url, not file list. So it must be passed to
`editor.insertImage`. And also, not `string` means it is file list. So
they should be handled by `insertImages`.