Creates a new image and returns an object.
type specifies the type of the image, which must be one of
the types currently defined (e.g., Bitmap).
name specifies the name for the image; if it is omitted then
Tk picks a name of the form imagex, where x is
There may be any number of option=>value pairs,
which provide configuration options for the new image.
The legal set of options is defined separately for each image
type; see below for details on the options for built-in image types.
If an image already exists by the given name then it is replaced
with the new image and any instances of that image will redisplay
with the new contents.
Deletes the image $image and returns an empty string.
If there are instances of the image displayed in widgets,
the image won't actually be deleted until all of the instances
However, the association between the instances and the image
manager will be dropped.
Existing instances will retain their sizes but redisplay as
If a deleted image is recreated (with the same name)
the existing instances will use the new image.
Pixmap is slightly more general than Bitmap, each pixel can
be any available color or ``transparent'' (rendered as background color of the
widget image is displayed in). Pixmap is best used for icons and other
simple graphics with only a few colors.