Let photon handle https images.

Closes #1808 
Includes a new test.
cc @koke cos I recall you were interested in photon supporting https.