Correctly parsing and storing photo urls