added url support for photos