fix thumbnails over https on local storage

When using local storage, thumbnails would always come over http even if you were using https for the rest of the site.  This is a small patch to fix that. 


I have emailed in the signed agreement.