Updated to use the id of the photos when linking from the album.