move invariants to createStore(...)
get nascent "photos" example in line with new API