try and fix problems with annotation editing and utf-8
fix some odd behaviour with highlighting of annotations in an image