Fix URL image generators throwing an NPE unnecessarily. Fixes #48