imageUrl protocol incorrect in case using no template

When using no template, `imageUrl` protocol is `http://` instead of `//`. This PR fixes this.