Fixes 177

Checks for the existance of the output_path's directory and
creates it if needs be
Merge pull request #178 from chrisgedrim/fix/generate_thumbnails_with_mkdir

Fixes 177