Differentiate photo paths and urls