Update app/models/thumbnail.rb

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