Add scope allocation in Texture.setColorkey. Cleanup.