Fine point annotation code updated for selectedImageId and related global triggers.