//store in blockImageMap
ImageIcon icon = new ImageIcon(fileURL);
if (width > 0 && height > 0) {
icon.setImage(icon.getImage().getScaledInstance(width, height, Image.SCALE_SMOOTH));
}
genus.blockImageMap.put(imgLoc, new BlockImageIcon(icon, imgLoc, isEditable, textWrap));
}
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
}