Allow config to inject a default publish and service url for image resizing. Also throw an exception if either one is "null".