Make the image plugin remove properly when disabling annotations