Don't keep the image file open on mac. Instead, select the previously opened text file or show no-editor.