sort the image files before rename them