Makes LineDetector::getAvg() actually return an average of the image.