(Bug 61928) Fix WTS to recognize templated attrs in inline images.

* Added new parser test to catch future regressions.

Change-Id: I23636d770705a76cb75ada99966337fa2f996176