image dialog: focus before insertImage

This format makes debugging easier.