fix bug that can't remove pictures