modified header and sort image files.