The administrator can allow Drupal users to uplad a user picture. If a user does not have a suitable image, then this module creates one. It puts the initials from the user's name in it.
This image shows the user page. At the right border there is the resulting picture.
The background colour is randomly taken from a fixed list of colors.