Test photo store, fix saving bug