added "url" function to photo