// If f is null, it means that we are not dealing with
// an SVG image. Try as a raster image.
if (f == null) {
ImageTagRegistry reg = ImageTagRegistry.getRegistry();
Filter filter = reg.readURL(purl);
if (filter == null) {
return null;
}
// Check if we got a broken image