Handle .shared/image.html? links correctly by stripping that prefix.

I hadn't spotted before that the original URI returns HTML, not image.