Presort images by path