fix remove image issue