Time optimizations

~ Small fixes with variables copy and waitKey
~ Tracking done on a decimated frame using a little smaller window.