I really can not respond without seeing what your talking about but your talking 2 different things or sections I beleive.
1. There are issues where vbGallery is finding image entries in the database where files are not found.
2. There are issues where a file is found on disk but there is no entry in the database for it.
If indeed these are orphaned files then cleaning up orphaned files is what you would want to do.