Safety net for image:rm shell command.