Modified script to allow for CMS editors that inject inline styles into images.