Replaced absDiff with -= in order to get one scan line, not two