I know with that an image can be placed in a MD with the MD syntax of either  or 
![Alt text](/path/to/img.jpg "Optional
rawgit.com solves this problem nicely. For each request, it retrieves the appropriate document from GitHub and, crucially, serves it with the correct Content-Type header.