Added more tracing to image url processing