It appears that image anchors only draw their focus rectangle as high as the line of text. This produces VERY bad results as you can see from the testcase.
After some debugging, I'm moving this to style. It's looking like the style has the rectangles stored incorrectly or something to that effect.
*** This bug has been marked as a duplicate of 133165 ***