more sorting and special algorithm... started imagePath sorting