Fix #1 stray console log
Fix #2 accidentally using global variable photos