Improve ImageInserter: use img.onload, drop hidden image helper after usage, call onToolDone only when really done