(almost) added ordering to images