downloading source image if a URL is provided