Add rating attribute to photos