fitler invalid picture and sort it