image.js: generate protocol-relative URLs