Pdf thumbnails - Refactoring of upload logic - Orphan files still present in
database