fixed photo url generation