Getting photos by id.