         $(@$el).bind evt, handler
 
     bindEvents: ->
+      @on "coverPhotoUpdated", @handleCoverPhotoUpdated
       @on "mouseleave", @hideActions
       @on "mouseenter", @showActions
       @on "mouseleave", @actionsContainer.selector, @hideActionsMenu

      @fileInput.click()
      false

    saveEdit: =>
      @gatherImageData()
      @form.submit()
      @hideEditMenu()
      @endReposition()
      false

    cancelEdit: =>

      dataUrl = @canvas[0].toDataURL("image/png")
      @hiddenImageInput.val(dataUrl)

      dataUrl

  $.fn.CoverPhoto = (data) ->
    @each ->
      new CoverPhoto
