Image plugin: case insensitive regex

Fixes #305