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


      photo       : new AvatarChangeHeaderView
        title     : "Take Photo"
        buttons   : [@getCancelView()]

      upload      : new AvatarChangeHeaderView
        title     : "Upload Image"

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

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