fix video resize to canvas bug