Tentative start on saving in localstorage.

I think using the standard PNG+JSON would be better, though...