add index to keep_local
link posts to photos and download photos