if, on getting canvas context