added parameter to pass in video canvas