Fixing leaks.

Passing the File object instead of the file descriptor to FilerThumbnails avoids unnecessary file opening.

Fix #310