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 a file list. Then they should be handled by `insertImages`.