Added more fexible URL scheme to img processor.