function SetImageTextureSize()
    oglInfo = opengl('data');
    curMaxTexSize = get(groot, 'DefaultImageMaxTextureSize');
    if oglInfo.MaxTextureSize < curMaxTexSize
        set(groot, 'DefaultImageMaxTextureSize', oglInfo.MaxTextureSize);
    end