Removes imageId from global, if present.
imageId
static void unregister(int imageId) => global.unregisterImage(imageId);