Removes unused pics.