The 25% number is not 25% of food produced, but 25% of the waste in the supply chain being on the consumer side. Nowhere that I can see in the 2013 study cited does the FAO make the claim that "fresh produce is thrown away due to visual imperfection", that number also encompasses e.g. people overbuying produce that goes bad etc.
By the criteria of the article you're citing if the production & distribution part of the supply chain got more efficient that scary 25% number would rise. Indeed if you read the study this is what's happened in industrialized countries, we have a higher food waste percentage on the consumer side because we have more relative savings in the rest of the supply chain.