canvas rendering correctly from video camera