Fix getting photos.

Fix getting photos.

Tested manually (grunt test still has issues due to grunt-contrib-jasmine dependencies)