remove old index
add local storage, add store option, move image rendering into own model