Image parsing now uses named sub-patterns.

Closes #121