add count inversions image