Fix #313. Repair broken image extension detection regex.
Merge pull request #315 from nuss-justin/issue/313

Fix #313. Repair broken image extension detection regex.