Freehand line profiling histogram added thanks to GRAL.