Updated image editor plug-in

Updated code to ensure that codec information doesn't get persisted if
an image is open in the editor.