how to decide which is first.jpg