fixing sorting image appearance