IMAGE: Rewrite a bunch of Cinepak using templates