fixed NPE when the url path isn't present
added image service