Hmm... No immediate clearer way comes to my mind, but could you extend the `height` and `width` matches to `height=` and `width=`? Otherwise it's unlikely, but possible, that another attribute with the same word gets matched.