remove image directories