openedFile of = fm.getActiveFile();
if(of==null || !(of.obj instanceof wdl)) return;
// get data
wdl obj = (wdl)of.obj;
// create buffered image
BufferedImage img = new BufferedImage(1024, 1024, BufferedImage.TYPE_INT_RGB);
for(int x=0; x<64; x++) {
for(int y=0; y<64; y++) {