After the file downloads and you load into an image or before you load into an image, System.print the string size, image height and width to the console. I bet the image is huge. Maybe there are some query parameters that you can supply to the url such that you get a smaller image on the download.