Updated configuration, ability to store thumbnails
Refactoring and thumbnail creation