Sort initial image