Added basic preview.

Refactored FileUtils and ImageDirectoryAdapter to work only with files and with images only.