getting data from photo dataset