remove image if cleared; cleanup