Make image regex configurable.