fix duplicate addition of alert messages
remove output images of earlier runs of the current snippet only