Improved img tag regex so that it matches tags that aren't self-closing

I noticed that some of my images weren't having their alt tags parsed into links because they weren't self-closing tags.

The new regex works with the following formats:
`<img alt="" />`
`<img alt="">`
`<img alt='' />`
`<img alt=''>`

I also added some tests with examples.