fixed a bug where photo URLs were being returned incorrectly