Try to sniff correct protocol for connection image

This attempts to load the connection testing image using https if appropriate.