Remove intermediate image after removing its container