Fixed bug in map marker manipulation.

Passing file paths to JavaScript as strings needs some care on Windows
where paths contain backslashes. Adding os.path.normpath in the Image
class helps prevent problems elsewhere.