fix ImageSitemap won't be written + added tests

the ImageSitemap throws an Exception if you try to write it to files because the output is not stored internally during the build-process.
Addtional tests also added.