fix thumbnails not coming over https

When using local storage, have thumbnails redirect to https if on https.