finally have photos working, but desperately need tests for it