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