With Piwigo 2.2.2, if you call pwg.images.setInfo without setting the level, then the privacy level is updated to "0" which means "visible to all". This is really a bad thing, the privacy level should be optional and if the client doesn't set the level, then it should not be modified.

-----[Subversion commit log]----------------------------------------------------
bug 2343 fixed: pwg.images.setInfo, the "level" should not be mandatory. If
the caller doesn't send this property, the level is unchanged.