cleaned up the template image