Add log directory
Refactoring
Add creting of log directory
Refactoring of ThumbnailCreatorTest