fixed use of attrs in photos.t