AND-3041 - Fix for image height stretch issue on Live Blog templates and certain articles (such a Sports fixture articles) where there is not an anchor tag wrapping the img. The code did look two nodes up for the Figure element to place the figure wide class but without the a tag it was not being placed. Unfortunately the replacement libraries being used in place of jQuery called Bonzo and QWERY do not support more advanced DOM traversal shortcuts such as parents() or closest() without loading a new library called traversty.js and as I understand it ender_bridge.js which is part of the Ender package manager. So I've created a simple pure JavaScript dom traversal ternary evaulation for parentNode.parentNode.nodeName to give parent the correct node selection in both scenarios and add the figure-wide or figure-inline class to the figure element as intended.