fix img regex to account for attributes in any order

this pull request closes #1