 		progressIndicator.doubleValue = 1
 		progressIndicator.startAnimation(self)
 		//
+		var renamedImageFileData = [[String: AnyObject]]()
+		//
 		println("dateFromSelector: \(dateFromSelector.selectedRow)")
 		println("useNewStartDate: \(useNewStartDate.state)")
 		println("newStartDate: \(newStartDate.dateValue)")

			let basePath : String! = (oldPath as NSString).stringByDeletingLastPathComponent
			let newPathAndBaseName : String = basePath.stringByAppendingPathComponent(newFileName)
			println("newPath: \(newPathAndBaseName)")
			// convert to jpg if raw (CR2)
			if (ext == "cr2") {
				let source = CGImageSourceCreateWithURL(image["URL"] as CFURL, nil)
				let destinationPath = newPathAndBaseName + ".jpg"
				convertToJpg(source, path:destinationPath)
			} else {
				let destinationPath = newPathAndBaseName + ".\(ext)"
				fm.moveItemAtPath(oldPath, toPath: destinationPath, error: nil)
			}
			println("renamed to: \(newFileName)")
		}
		clearTable()
		progressIndicator.stopAnimation(self)
	}
	

		let count = imageFileData.count
		var current : Int = 1
		// iterate over images
		for image:[String: AnyObject] in imageFileData {
			progressIndicator.doubleValue = 100 * (Double(current++) / Double(count))
			var counter : Int = 1
			var baseDate: NSDate = image[dateKey] as NSDate
