Fix bitmap context creation.