removing extra images