Using the width instead to calculate the quality. Should most likely also use nearest anbour.