Improves thumbnail detection