Rpi optimized optical flow