         color      : "#ffffff"
         shape      : "spiral"
 
+    @cancelPhoto = @getCancelView()
+
     @headers =
       actions     : new AvatarChangeHeaderView
         buttons   : [@photoButton, @uploadButton, @gravatarButton]

    @webcamView.addSubView @takePhotoButton
    @webcamView.on "snap", (data)=> @avatarData = data
    @webcamView.on "allowed", =>
      @webcamTip.destroy()
      @takePhotoButton.show()

    @webcamView.on "forbidden", =>
      @webcamTip.updatePartial """
      <cite>
        You disabled the camera for Koding.

    @avatar.hide()
    @avatarHolder.addSubView @webcamTip
    @setWide()
    @cancelPhoto.disable()
    @getDelegate().avatarMenu.changeStickyState on

    release = =>
      @cancelPhoto.enable()
      @getDelegate().avatarMenu.changeStickyState off

    @avatarHolder.addSubView @webcamView = new KDWebcamView
      hideControls  : yes
      countdown     : 3
