Refactored the mousetracking
Added new function to debug
Fixed bug where the iteration was not correctly ended when using
mutliple filters and a VideoSlice