more fixes for the image twins; improved test (both donated by Frank Danek)

git-svn-id: svn://svn.code.sf.net/p/htmlunit/code/trunk@9227 5f5364db-9458-4db8-a492-e30667be6df6