added createpng option. if set to false no PNG files will be created.