       slideConfig = slideConfigs[offset]
       attrString = ''
       if slideConfig['data-background-image']
-        attrString += " data-background-image='#{slideConfig['data-background-image']}'"
+        attrString += " data-background-image='#{@resolveFilePath(slideConfig['data-background-image'], isSavingToHTML)}'"
 
       if slideConfig['data-background-size']
         attrString += " data-background-size='#{slideConfig['data-background-size']}'"

    </div>
    """

  parseSlidesForExport: (html, slideConfigs)->
    slides = html.split '<div class="new-slide"></div>'
    slides = slides.slice(1)
    output = ''


        el.setAttribute('data-processed', 'true')
        el.setAttribute('data-original', dataOriginal)

  ###
  convert './a.txt' '/a.txt'
  ###
  resolveFilePath: (filePath, relative=false)->
    if filePath.startsWith('./') or filePath.startsWith('/')
      if relative
        if filePath[0] == '.'
          return filePath
        else
          return path.relative(@rootDirectoryPath, path.resolve(@projectDirectoryPath, '.'+filePath))
      else
        if filePath[0] == '.'
          return 'file:///'+path.resolve(@rootDirectoryPath, filePath)
        else
          return 'file:///'+path.resolve(@projectDirectoryPath, '.'+filePath)
    else
      return filePath

  ## Utilities
  openInBrowser: (isForPresentationPrint=false)->
