fix void img element issue. see SO issue 7366344