Text this: Jigsaw puzzle solving with template matching.