SMS: Model-based visual tracking