Overridable generator for creating canvas elements