remove thumbnails if no longer needed
Merge pull request #6164 from jdalsem/file-remove-thumbs

Fixes #6162 - Remove file thumbnails if no longer needed