Add Lucas-Kanade implementation for grayscale images.