image.addUser(texture);
    final void initImage(ImageComponent2D img) {                int texFormat;                if(img == null) {            image = null;            texture = null;            return;        }                image = (ImageComponent2DRetained) img.retained;        image.setEnforceNonPowerOfTwoSupport(true);        switch(image.getNumberOfComponents()) {            case 1:                texFormat = Texture.INTENSITY;                break;            case 2:                texFormat = Texture.LUMINANCE_ALPHA;                break;            case 3:                texFormat = Texture.RGB;                break;            case 4:                texFormat = Texture.RGBA;                break;            default:                assert false;                return;        }                Texture2D tex2D = new Texture2D(Texture.BASE_LEVEL, texFormat,                 img.getWidth(), img.getHeight());        texture = (Texture2DRetained) tex2D.retained;        texture.setUseAsRaster(true);        texture.initImage(0,img);          }