     # 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
 

        x: x
        y: y
        initials: @initials()
    else
      return App.view('avatar')
        data: data
        cssClass: cssClass
        placement: placement
        vip: vip
        url: @imageUrl()

  imageUrl: ->
    return if !@image

  avatar: (size = 40, placement = '', cssClass = '', unique = false, avatar, type = undefined) ->
    size   = parseInt(size, 10)

    cssClass += ' ' if cssClass
    cssClass += "size-#{ size }"

    if placement
