do not try to use context->width at creation time, it may not be initialized