using simple App class
rewritten to use Photo object