The picture is being saved always in a new folder. Never overrides an existing one.

1 + Gdx.files.absolute(path).list().length; 
returns a the number of folders from this directory +1, never an existing one.
i.e. ~/1/miPictureRes; ~/2/miPictureRes; ~/3/miPictureRes; ...

That is if every time the user decides to delete an image resource the successive folder names are reordered.