Now images can be sorted