function createImage(data)
        {
            var image = /** @type {!HTMLImageElement} */ (createElement("img"));
            if (data)
                image.src = "data:image/jpg;base64," + data;
            return image.completePromise();
        }
@param {?string} data
@return {!Promise<!HTMLImageElement>}