 
   setAvatar:(uri)->
     if @bgImg isnt uri
-      @$().css "background-image", uri
+      @$().css "background-image", "url(#{uri})"
       @bgImg = uri
 
   render:->

        </div>
    </div>
    """


    height = width unless height

    avatarURI = if profile.hash
    then "//gravatar.com/avatar/#{profile.hash}?size=#{width}&d=#{encodeURIComponent @fallbackUri}"
    else "#{@fallbackUri}"

    if profile.avatar?.match /^https?:\/\//
      resizedAvatar = KD.utils.proxifyUrl profile.avatar, {crop: yes, width, height}
      avatarURI = "#{resizedAvatar}"

    @setAvatar avatarURI

