initial add-image one-off code.