List images = export.getDelayedImages();
Map<String,BufferedImage> writtenImages = new HashMap<String,BufferedImage>();
for(Object i : images) {
if(i instanceof SImage) {
SImage image = (SImage) i;
if(!writtenImages.containsKey(image.getRelativeURL())) {
ZipEntry ie = new ZipEntry(dir+"/resources/"+image.getRelativeURL());
out.putNextEntry(ie);
ImageIO.write(image.getBufferedImage(),"png",out);
out.flush();
out.closeEntry();
writtenImages.put(image.getRelativeURL(),image.getBufferedImage());
}
}
if(i instanceof PatternPaint) {
PatternPaint paint = (PatternPaint) i;
if(!writtenImages.containsKey(paint.getRelativeURL())) {