Extracting the main part of a pic.