sort images array. still need to get right top image