Add canvas directive