Removed thumbnail detection logic.