 
     if @group.customize?.coverPhoto
       @listController.getView().hide()
-      @coverView.setCss 'background-image', "url(#{@group.customize.coverPhoto})"
+      resizedImg = @getResizedImage(@group.customize?.coverPhoto)
+      @coverView.setCss 'background-image', "url(#{resizedImg})"
       @coverView.show()
     else
       @coverView.hide()

        if @group.slug isnt "koding"
          @decorateHeader()

  decorateHeader:->

    unless @container

        cssClass : "container"
        size     : height : 315

      resizedImg = @getResizedImage(@group.customize?.coverPhoto)
      @coverView = new KDCustomHTMLView
        tagName    : 'figure'
        attributes :
          style    : "background-image: url(#{resizedImg});"

      @listController = new KDListViewController
        startWithLazyLoader : no
