When it comes to GitHub repo, what does the URL of the image look like? Is some kind of hash added to the filename? At the moment I use media files from my WordPress blog to store images.
But I've never tried to link directly to source file, not builded version on my server.
It's not a long-term solution but it works.