Update of the image loaddata function

URL construction was failing.