photo url functionality