Fix selection and hover for MW inline images.

Change-Id: I82444157a2f57739dc81039dd919233201041634
Merge "Fix selection and hover for MW inline images."