include querystring when obtaining media, closes #267