Url scheme fix

Hello,

Thanks for the script. 

I noticed that if the upload url is http and the site is accessed through https, the url returned from aq_resize is empty string.

I added a couple of lines to make the schemes match. Please take a look. 

AB