} catch (IOException e) {
throw new TubainaException("Image not existant", e);
} catch (NullPointerException e) {
throw new TubainaException(path + " is not a valid image");
}
resources.add(new ImageResource(image, matcher.group(2)));
return new ImageChunk(path, matcher.group(2), width);
}