use local storage to persist photos