Preserve directory structure

Instead of generating images directly on `outputDirectory`, use the same
directory structure as in `sourceFiles`.

Fixes #8