image dialog: focus before insertImage

This is the crux. This call to `focusOnDocument`. Image insertion didn't work in IE >= 9 without this.