more old canvas implementation compatibility