Allow cross origin tests to run locally without dependence on an external server.

(Attempt #2)

Exploits the fact that the browser will consider localhost and 127.0.0.1 to be different origins, even though they route to the same place. When running the test on a non-local server the image will continue to be fetched from opengl.org