use element reference rather than id for loading photos #10