fix random photo url problem