Extract canvas id as a constant