iPhone removal of hidden pics

Sometimes a glitch happens on the iPhone. Memory is full , photos, can be seen in settings -> genegal -> usage, but they do not exist in the application of any aytyunse. 

Reason:

The fact that a change in the pictures / PhotoData / Metadata / edited copy photos stored. And when you delete photos third-party programs , such as through windows explorer (Computer -> iPhone -> Internal Storage) copy is not automatically removed.

Solution: 

The iPhone turn off the program photos.
In the program iTools on your computer, navigate to the FileSystem and delete all the files (not directories, only files) on ways:
/PhotoData/Metadata/DCIM/*APPLE/*
/PhotoData/Thumbnails/V2/DCIM/*APPLE/*