Using HTML <video> and <canvas> to track an object of specific color and display it in a canvas where the object is always in the middle