Fix issue with textureWithImageNamed method.