Updated index.js to test save and reload photos