Fixes issue where if you have thumbnail_class set different from main file class is will not store thumbnails in s3 and cloud file.