Thumbnail processing now handles files better