bugzid 5066: remove quotes to change from literal text to method call
handle JSON errors if image tag is not a JSONObject
Merge pull request #85 from daniellemayne/2014.08

bugzid 5066: remove quotes to change from literal text to method call