Avoid continuing producing images in the background when the image is going away.