add scripts to build custom posts from photos; auto-generate index