I just tried that URL, and what I got was a 403 response. It’s quite possible that you’re getting an HTML error page rather than the JPG image you requested. Try checking r.headers["Content-Type"] to see what yopu’re getting. Actually, check some of the other headers to see what it tells you about the response - I think it’ll be instructive.