Learning to rank food images