 
   image_path = (rotation) ->
     num = ("000" + rotation).slice(-3)
-    path.replace('.png', '') + "-#{num}.png"
+    path.replace(".png", "") + "-#{num}.png"
 
   # Rotation by calling the 3D Viewer through the DOM
   rotateY = (y) ->

    window.setTimeout((->
      async.eachSeries [0..total], rotator, ->
        phantom.exit()
    ), 500)

    window.setTimeout((->
      page.render(image_path(rotation))
      callback()
    ), 200)

  page.viewportSize = { width: width, height: height }
  page.paperSize = { width: width, height: height }
