thumbnail over https

This is a very small patch that fixes thumbnails not using https whenever you are on local storage and running the rest of the site over SSL.

I have emailed the contributor agreement.