Add assemble_templates option and inline img size