     # isn't set to transparent because a transparent icon in many cases
     # will reveal content behind it that is undesirable to show.  
     style.backgroundColor = 'white'
+  else if props.set_bg_color 
+    user.bg_color ?= hsv2rgb(Math.random() / 5 + .6, Math.random() / 8 + .025, Math.random() / 4 + .4)
+    style.backgroundColor = user.bg_color
 
   id = if anonymous 
          "avatar-hidden" 

  border-radius: 50%;
  background-size: cover;
  background-color: #{default_avatar_in_histogram_color}; 
  user-select: none; 
  -moz-user-select: none; 
  -webkit-user-select: none;

      fetch user
      return SPAN null

  attrs.style ?= {}
  style = attrs.style

  # Setting avatar image
