button: ensure content image is NULL after it is freed