     # use system avatar for system actions
     if @id is 1
       return App.view('avatar_system')()
-    else if !@image || @image is 'none' || unique
+
+    # generate uniq avatar
+    if !@image || @image is 'none' || unique
       width  = 300
       height = 226
 

      vip = false
      data = " data-avatar-id=\"#{avatar.id}\""

    vip = @vip
    if type is 'personal'
      vip = false

        x: x
        y: y
        initials: @initials()

    # generate image based avatar
    return App.view('avatar')
      data: data
      cssClass: cssClass
      placement: placement
      vip: vip
      url: @imageUrl()

  imageUrl: ->
    return if !@image
