 
   serialize: ->
     deserializer: 'ImageEditSession'
-    path: @path
+    path: @getUri()
 
   getViewClass: ->
     require './image-view'

  # Retrieves the URI of the current image.
  #
  # Returns a {String}.
  getUri: -> @path

  # Retrieves the path of the current image.
  #

        new ImageEditSession(filePath)

  @deserialize: ({path}={}) ->
    path = project.resolve(path)
    if fsUtils.isFileSync(path)
      new ImageEditSession(path)
    else
      console.warn "Could not build image edit session for path '#{path}' because that file no longer exists"
