This tests calling decode() for a static image which is also an element in the DOM tree.