fixed multiple template types in same image conversion