createAvatarImage function
Creates an Image Element from a User that has the user's avatar.
Implementation
ImageElement createAvatarImage(
User user, {
int width = 128,
int height = 128,
}) {
return ImageElement(src: user.avatarUrl, width: width, height: height);
}