Add template for collecting lines by image.