Removal of useless pictures