add function delete img when delete Action