Remove invalid pictures