String fileLocation = imageLocationNode.getTextContent();
try {
URL fileURL = new URL("file", "", /*workingDirectory +*/ fileLocation);
if (fileURL != null && location != null) {
//translate location String to ImageLocation representation
ImageLocation imgLoc = ImageLocation.getImageLocation(location);
assert imgLoc != null : "Invalid location string loaded: " + imgLoc;
//store in blockImageMap
ImageIcon icon = new ImageIcon(fileURL);
if (width > 0 && height > 0) {