Added undo for image insertions for desktop and web versions