fix issue where image was removed when brackets gained focus. Part 2 of update to integrate change file.exists API