trying to sort images