Needed to clear result image if a new template was loaded.