 
       photo       : new AvatarChangeHeaderView
         title     : "Take Photo"
-        buttons   : [@getCancelView()]
+        buttons   : [@cancelPhoto]
 
       upload      : new AvatarChangeHeaderView
         title     : "Upload Image"

    @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.

        color      : "#ffffff"
        shape      : "spiral"

    @cancelPhoto = @getCancelView()

    @headers =
      actions     : new AvatarChangeHeaderView
        buttons   : [@photoButton, @uploadButton, @gravatarButton]
