Load images depending on the protocol of the site

The hard coded protocols do show a insecure content loaded when the user is on a https site and tries to pay with the paypal plugin. This patch recognizes the protocol of the actual site and loads the images either http or https.