Bugfix

Added template for figure matching