This object can render an avatar image with the user initials.
It takes the name of the user and creates a canvas object on which it renders the initial letters of the person name.
The background color of the image is picked by computing an hash of the user name. The foreground color is picked automatically to be a complimentary color of the background.
The size of the image and the font are configurable parameters. The font size is computed automatically from the image size and font type.
The generate image can be returned as a binary data string, or assigned to a given page img element, or creating a new img element.