Fixing getting back image thumbnails from existing files